Skip to main content
Version: Upcoming

LiveRateCurve

V8 Message Definiton

METADATA

AttributeValue
Topic1000-analytics
MLink TokenSRMLinkAnalytics
ProductSRAnalytics
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'tickerroot key of option chain used for rate calc below
ticker_tsenum - TickerSrcPRI'None'tickerroot key of option chain used for rate calc below
ticker_tkVARCHAR(12)PRI''tickerroot key of option chain used for rate calc below
timestampDATETIME(6)'1900-01-01 00:00:00.000000'
PointListJSON'JSON_ARRAY()'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3

JSON Block (PointList)

FieldTypeComment
iDaysenum - iDaysinterest paying days
boxRateenum - boxRateestimated BOX rate
loRateenum - loRateimplied BOX rate lo bound most recent fit pass
hiRateenum - hiRateimplied BOX rate hi bound most recent fit pass
nPointsenum - nPointsnumber of bidask BOX sample points used

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAnalytics`.`MsgLiveRateCurve` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'ticker/root key of option chain used for rate calc below',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE','SPHR') NOT NULL DEFAULT 'None' COMMENT 'ticker/root key of option chain used for rate calc below',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'ticker/root key of option chain used for rate calc below',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
`PointList` JSON NOT NULL DEFAULT JSON_ARRAY() CHECK(JSON_VALID(PointList)),
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';

SELECT TABLE EXAMPLE QUERY

SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`timestamp`,
`PointList`
FROM `SRAnalytics`.`MsgLiveRateCurve`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE','SPHR') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk';

Doc Columns Query

SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='LiveRateCurve' ORDER BY ordinal_position ASC;